package com.yidu.qianfeng.service.impl;

import com.yidu.qianfeng.common.bean.Vehicle.CarInfo;
import com.yidu.qianfeng.common.bean.company.Subst;
import com.yidu.qianfeng.common.bean.shunt.ShuntLeftBean;
import com.yidu.qianfeng.common.bean.transport.TransportProtocol;
import com.yidu.qianfeng.common.bean.waybill.Waybill;
import com.yidu.qianfeng.mapper.CompanyMapper;
import com.yidu.qianfeng.mapper.ShuntMapper;
import com.yidu.qianfeng.service.ShuntServiceInter;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 分流服务层 实现类
 * @author 张兴兴
 * @date 2021/3/25 16:43
 */

@Service("shuntServiceImpl")
public class ShuntServiceImpl implements ShuntServiceInter{
    @Resource
    private ShuntMapper mapper;

    @Override
    public List<TransportProtocol> queryTrans(String carloadTransNum,String empStubstId) {
        return mapper.queryTrans(carloadTransNum,empStubstId);
    }


    @Override
    public Waybill queryWaybill(String carloadSeqNum ,int consignType) {
        return mapper.queryWaybill(carloadSeqNum,consignType);
    }

    @Override
    public List<String>  queryWaybillConsigNum(String seqNum ) {
        return mapper.queryWaybillConsigNum(seqNum);
    }

    @Override
    public int updateWayBillType(String consignNum ,int consignType) {
        return mapper.updateWayBillType(consignNum,consignType);
    }

    @Override
    public Subst selectSubst(String emploginSubst) {
        return mapper.selectSubst(emploginSubst);
    }

    @Override
    public List<Waybill> queryShunt(String num,int type,String substId) {
        return mapper.queryShunt(num,type,substId);
    }


    @Override
    public Waybill queryDelivery(String consignNum){
        return mapper.queryDelivery(consignNum);
    }

    @Override
    public CarInfo querydriverinfo(String carDriver) {
        return mapper.querydriverinfo(carDriver);
    }

    @Override
    public List<CarInfo> querydriverinfoAll() {
        return mapper.querydriverinfoAll();
    }

    @Override
    public int addDelivery(HashMap<String, Object> map){
        return mapper.addDelivery(map);
    }

    @Override
    public List<ShuntLeftBean> queryDeliveryList(String id,String carName) {
        return mapper.queryDeliveryList(id,carName);
    }

    @Override
    public String queryDeliveryWaybill(int sendNum) {
        return mapper.queryDeliveryWaybill(sendNum);
    }

    @Override
    public ShuntLeftBean queryDeliveryTips(int sendNum) {
        return mapper.queryDeliveryTips(sendNum);
    }

    @Override
    public int updateDelivery(HashMap map) {
        return mapper.updateDelivery(map);
    }

    @Override
    public CarInfo queryDriverT(String carNumber) {
        return mapper.queryDriverT(carNumber);
    }

    @Override
    public int deleteDriver(String consignNum) {
        return mapper.deleteDriver(consignNum);
    }


}
